<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>详情</title>
</head>
<body>
<table style="border: #0e90d2 1px ">
    <tr>
        <th>企业名称:</th>
        <td>{$Onedata->e_name}</td>


    </tr>

    <tr>
        <th>企业评分:</th>
        <td>{$Onedata->e_like}</td>
    </tr>

</table>



    <label>评分:</label>
    <input type="radio" name="e_like" value="10" checked>10分;
    <input type="radio" name="e_like" value="8" >8分;
    <input type="radio" name="e_like" value="6" >6分;
    <input type="radio" name="e_like" value="4" >4分;
    <input type="radio" name="e_like" value="2" >2分;
    <button id="ping">评分</button>

</body>
</html>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
    //初始化
    $(function () {
        $("#ping").click(function () {
                //获取当前选中的input里面的value值
            var value =  $('input').val();
            $.ajax({
                url:"{:url('update')}",
                data:{value:value},
            })
        })
    })
</script>